package com.plugin.test

import org.gradle.api.Plugin
import org.gradle.api.Project

class GreetingPlugin implements Plugin<Project> {

    @Override
    void apply(Project project) {

        project.extensions.create("great", GreetingPluginExtension)
        project.task("testPlugin") {
            group = "plugins"
            doLast {
                def ext = project.great
                println("testPlugin ${ext.message} from ${ext.greeter}")
            }

        }
    }
}

class GreetingPluginExtension {
    String message
    String greeter
}
